<template>
  <div>
    <h2>{{id}}--{{title}}</h2>
  </div>
</template>

<script lang="ts">
import {defineComponent} from "vue";
export default defineComponent({
    name:"NewsItem",
})
</script>

<script lang="ts" setup>
import {useRoute} from "vue-router";
import {computed} from "vue";
const route = useRoute()
const title = computed(()=>{
    return route.query.title
})
const id = computed(()=>{
    return route.query.id
})
</script>

<style scoped>

</style>